<div class="container-fluid">
    <h3>Create form</h3>
    <?php
    $cls = $viewModel->get("cls");
    ?>
    <?php include 'views/Include/alert.php'; ?>
    <hr>
    <center>
        <input type="radio" name="chs" value="chsAdd" checked="checked"> Add a single&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="radio" name="chs" value="chsDayOff"> Add a day off
    </center>

    <hr>
    <form class="form-horizontal" method="POST">
        <div class="control-group">
            <label class="control-label" for="inputSubjectID">Class: </label>
            <div class="controls">
                <select id="inputScheduleClass" name="classes_id">
                    <option value="-1">Select Class</option>
                    <?php
                    foreach ($cls as $cl) {
                        echo "<option value='" . $cl->classes_id . "'>" . $cl->classname . "</option>";
                    }
                    ?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputSubjectID">Date: </label>
            <div class="controls">
                <input type="text" id="inputScheduleDateSubject"  class="inputScheduleDateSubject"  name="inputScheduleDateSubject" placeholder="Begin" />
            </div>
            <p class="controls alert-danger" id="notificationText1" style="display: none">*</p>
        </div>
        <div class="control-group" id="divScheduleSubject">
            <label class="control-label" for="inputSubjectID">Subject: </label>
            <div class="controls">
                <select id="inputScheduleSubject" name="subject_id">
                    <option value="-1">----------</option>
                </select>
            </div>
        </div>
        <div class="control-group" id="divScheduleLession">
            <label class="control-label" for="inputScheduleLession">Lession: </label>
            <div class="controls">
                <select id="inputScheduleLession" name="lession_id">
                    <option value="-1">-----------</option>
                </select>
            </div>
            <p class="controls alert-danger" id="notificationText" style="display: none">*</p>
        </div>
        <div class="control-group" style="display: none">
            <label class="control-label" for="getSubjectID">SubjectID: </label>
            <div class="controls">
                <input type="text" name="getSubjectID" id="getSubjectID" value="">
            </div>
        </div>

        <div class="control-group" id="divDayOff" style="display: none">
            <label class="control-label" for="inputScheduleDayOff">Day-Off: </label>
            <div class="controls">
                <textarea id="txtDayOff" name="txtDayOff"></textarea>
            </div>
        </div>

        <div class="control-group"></div>
        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-success">Submit</button>
                <button type="reset" class="btn">Reset</button>
            </div>
        </div>
    </form>
</div>